﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddQuestionResourceMini.aspx.cs"
    Inherits="sysadmin_QuestionManager_AddQuestionResourceMini" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>添加试题多媒体资源</title>
    <link href="../../css/1/css/css.css" type="text/css" rel="stylesheet" />

    <script language="javascript">
    window.name="win_test"     
    function closeWin()
    {
        var win = window.dialogArguments;
        win.close();    
    }
    function closeWin1()
    {
        
        window.close();        
    }
    </script>

</head>
<body class="bodymain" >
    <form id="form1" runat="server" target="win_test" >
        <div >
            <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="tree-titbg_right">
                <tr>
                    <td class="tree-titbg_left">
                        <asp:Label ID="lbl_InfoTitle" runat="server" Text="多媒体资源基础信息"></asp:Label>
                    </td>
                </tr>
            </table>
            <table border="0" cellpadding="0" cellspacing="0" class="tableList2" width="100%">
                <tr>
                    <th>
                        <asp:Label ID="lab_Name" runat="server" Text="多媒体资源名称"></asp:Label></th>
                    <td>
                        <asp:TextBox ID="txtQuestionTypeName" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <th>
                        <asp:Label ID="lab_Type" runat="server" Text="资源分类"></asp:Label></th>
                    <td>
                        <asp:DropDownList ID="ddlSystemType" runat="server">
<%--                            <asp:ListItem Value="1"></asp:ListItem>
                            <asp:ListItem Value="2"></asp:ListItem>--%>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <th>
                        <asp:Label ID="lab_SelectFile" runat="server" Text="选择文件"></asp:Label></th>
                    <td>
                        <input id="File1" runat="server" type="file" /></td>
                </tr>
                <tr>
                    <td colspan="2" class="tree-bottom-bg">
                        <asp:Button ID="btnSave" runat="server" CssClass="inputBotton2" OnClick="btnSave_Click"
                            Text=" 保 存 " />
                    </td>
                </tr>
            </table>
            <table>
                <tr>
                    <td >
                        <asp:Label ID="lab_txt" runat="server" ForeColor="Blue" Text="您上传文件的链接地址：" Visible="False"></asp:Label>
                        <asp:Label ID="lab_Msg" runat="server" Text="" Visible="False"></asp:Label>
                        <input id="txt_Url" type="text" visible="false" onclick="oCopy(txt_Url);" runat="server" />
                        <asp:Label ID="lab_ButtonCopy" runat="server" Text="" Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
        </div>

        <script type="text/javascript">
        function copyText(obj)   
        { 
        var rng = document.body.createTextRange(); 
        rng.moveToElementText(obj); 
        rng.scrollIntoView(); 
        rng.select(); 
        rng.execCommand("Copy"); 
        rng.collapse(false);
        alert("复制成功,关闭对话框!");
        window.close(); 
        } 
        function CopyUrl(target){ 
//        target.value=myrss.value; 
//        target.select();   
//        js=myrss.createTextRange();   
//        js.execCommand("Copy");
            target.execCommand("Copy");
        alert("复制成功,关闭对话框!"); 
        window.close(); 
        } 
        
       function oCopy(obj){ 
        obj.select(); 
        js=obj.createTextRange(); 
        js.execCommand("Copy")
        alert("复制成功!"); 
        } 
        
        </script>

        &nbsp;
    </form>
    <base target="_self" />
</body>
</html>
